import request from '@/utils/request'

// 列表
export function getList(data) {
  return request({
    url: `/api/zgyf/BaseManage/getList`,
    method: 'post',
    data
  })
}

// 删除
export function del(id) {
  return request({
    url: `/api/zgyf/BaseManage/${id}`,
    method: 'DELETE'
  })
}

// 获取接口数据
export function getDataInterfaceRes(id, data) {
  return request({
    url: `/api/system/DataInterface/${id}/Actions/Preview`,
    method: 'POST',
    data: data || {}
  })
}

// 获取字典数据下拉框列表
export function getDictionaryDataSelector(dictionaryTypeId) {
  return request({
    url: `/api/system/DictionaryData/${dictionaryTypeId}/Data/Selector`,
    method: 'GET'
  })
}
